package com.common.rediscaffeine;

import java.io.Serializable;

/**
 * @description:
 * @author：nihongyu
 * @date: 2023/7/18
 */
public class CacheMessage implements Serializable {
    private static final long serialVersionUID = -2571355678052306708L;

    private String cacheName;

    private Object key;

    public CacheMessage() {
    }

    public CacheMessage(String cacheName, Object key) {
        super();
        this.cacheName = cacheName;
        this.key = key;
    }

    public String getCacheName() {
        return cacheName;
    }

    public void setCacheName(String cacheName) {
        this.cacheName = cacheName;
    }

    public Object getKey() {
        return key;
    }

    public void setKey(Object key) {
        this.key = key;
    }
}
